package com.ruoyi.order.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.TechnicianBellItemOrderMapper;
import com.ruoyi.order.domain.TechnicianBellItemOrder;
import com.ruoyi.order.service.ITechnicianBellItemOrderService;

/**
 * 加钟订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
@Service
public class TechnicianBellItemOrderServiceImpl implements ITechnicianBellItemOrderService 
{
    @Autowired
    private TechnicianBellItemOrderMapper technicianBellItemOrderMapper;

    /**
     * 查询加钟订单
     * 
     * @param id 加钟订单主键
     * @return 加钟订单
     */
    @Override
    public TechnicianBellItemOrder selectTechnicianBellItemOrderById(Long id)
    {
        return technicianBellItemOrderMapper.selectTechnicianBellItemOrderById(id);
    }

    /**
     * 查询加钟订单列表
     * 
     * @param technicianBellItemOrder 加钟订单
     * @return 加钟订单
     */
    @Override
    public List<TechnicianBellItemOrder> selectTechnicianBellItemOrderList(TechnicianBellItemOrder technicianBellItemOrder)
    {
        return technicianBellItemOrderMapper.selectTechnicianBellItemOrderList(technicianBellItemOrder);
    }

    /**
     * 新增加钟订单
     * 
     * @param technicianBellItemOrder 加钟订单
     * @return 结果
     */
    @Override
    public int insertTechnicianBellItemOrder(TechnicianBellItemOrder technicianBellItemOrder)
    {
        technicianBellItemOrder.setCreateTime(DateUtils.getNowDate());
        return technicianBellItemOrderMapper.insertTechnicianBellItemOrder(technicianBellItemOrder);
    }

    /**
     * 修改加钟订单
     * 
     * @param technicianBellItemOrder 加钟订单
     * @return 结果
     */
    @Override
    public int updateTechnicianBellItemOrder(TechnicianBellItemOrder technicianBellItemOrder)
    {
        technicianBellItemOrder.setUpdateTime(DateUtils.getNowDate());
        return technicianBellItemOrderMapper.updateTechnicianBellItemOrder(technicianBellItemOrder);
    }

    /**
     * 批量删除加钟订单
     * 
     * @param ids 需要删除的加钟订单主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianBellItemOrderByIds(Long[] ids)
    {
        return technicianBellItemOrderMapper.deleteTechnicianBellItemOrderByIds(ids);
    }

    /**
     * 删除加钟订单信息
     * 
     * @param id 加钟订单主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianBellItemOrderById(Long id)
    {
        return technicianBellItemOrderMapper.deleteTechnicianBellItemOrderById(id);
    }
}
